package com.kk.permission.huawei.d2_2010;

import android.content.ActivityNotFoundException;
import android.content.Context;
import android.content.Intent;

import com.kk.permission.GuideConst;
import com.kk.permission.handler.ConfigHandler;
import com.kk.permission.huawei.HuaweiPermissionAccessbilityHandlerBase;
import com.kk.permission.huawei.HuaweiPermissionStrategyBase;
import com.kk.permission.utils.Permission;
import com.kk.permission.utils.callershow.CallerShowUtils;

import java.util.ArrayList;

public class HuaweiD22010PermissionGuideStrategy extends HuaweiPermissionStrategyBase {
    private static final String TAG = "HuaweiPermissionGuide";

    public HuaweiPermissionAccessbilityHandlerBase getHandlerBase() {
        return null;
    }

    public HuaweiD22010PermissionGuideStrategy(Context context) {
        super(context);
    }

    protected void actionReadCalllog() {
        super.actionReadCalllog();
        actionTrustApplicationPermission(true);
    }

    protected void actionReadContact() {
        super.actionReadContact();
        actionTrustApplicationPermission(true);
    }

    protected void actionTrustApplicationPermission(boolean z) {
        super.actionTrustApplicationPermission(z);
        try {
            Intent intent = new Intent();
            intent.setClassName("com.huawei.systemmanager", GuideConst.HUAWEI_APP_PERMISSION_ACTIVITY_NAME);
            z = startIntentActivities(intent, GuideConst.TRUST_APPLICATION_PERMISSION, this.mAutoGuide);

        } catch (Throwable e) {
        }
    }

    /* JADX WARNING: Removed duplicated region for block: B:26:0x0189 A:{RETURN, Splitter: B:1:0x0003, ExcHandler: android.content.ActivityNotFoundException (unused android.content.ActivityNotFoundException)} */
    /* JADX WARNING: Removed duplicated region for block: B:26:0x0189 A:{RETURN, Splitter: B:1:0x0003, ExcHandler: android.content.ActivityNotFoundException (unused android.content.ActivityNotFoundException)} */
    /* JADX WARNING: Missing block: B:26:0x0189, code:
            return;
     */
    protected void actionAutoBootPermission() {
        /*
        r6 = this;
        super.actionAutoBootPermission();
        r0 = new android.content.Intent;	 Catch:{ ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189 }
        r0.<init>();	 Catch:{ ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189 }
        r1 = r6.mVersion;	 Catch:{ ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189 }
        r2 = 4;
        if (r1 == r2) goto L_0x012f;
    L_0x000d:
        r1 = r6.mVersion;	 Catch:{ ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189 }
        r2 = 5;
        if (r1 != r2) goto L_0x0014;
    L_0x0012:
        goto L_0x012f;
    L_0x0014:
        r1 = r6.mVersion;	 Catch:{ ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189 }
        r2 = 6;
        r3 = 1;
        if (r1 != r2) goto L_0x009c;
    L_0x001a:
        r1 = "com.huawei.systemmanager";
        r2 = "com.huawei.permissionmanager.ui.MainActivity";
        r0.setClassName(r1, r2);	 Catch:{ ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189 }
        r1 = "autoboot_permission";
        r2 = r6.mAutoGuide;	 Catch:{ ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189 }
        r0 = r6.startIntentActivities(r0, r1, r2);	 Catch:{ ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189 }
        r1 = new android.content.Intent;	 Catch:{ ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189 }
        r2 = r6.mContext;	 Catch:{ ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189 }
        r4 = com.cootek.permission.OuterTwoStepPermissionActivity.class;
        r1.<init>(r2, r4);	 Catch:{ ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189 }
        r2 = "guide_text_row_1";
        r4 = com.cootek.permission.R.string.huawei_permission_5_0_autoboot_step_1_text;	 Catch:{ ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189 }
        r4 = com.cootek.permission.utils.StringUtils.getFullStringWithAppName(r4);	 Catch:{ ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189 }
        r1.putExtra(r2, r4);	 Catch:{ ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189 }
        r2 = "guide_text_row_2";
        r4 = r6.mContext;	 Catch:{ ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189 }
        r5 = com.cootek.permission.R.string.huawei_permission_5_0_autoboot_step_2_text;	 Catch:{ ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189 }
        r4 = r4.getString(r5);	 Catch:{ ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189 }
        r1.putExtra(r2, r4);	 Catch:{ ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189 }
        r2 = "guide_text_row_3";
        r4 = r6.mContext;	 Catch:{ ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189 }
        r5 = com.cootek.permission.R.string.huawei_permission_5_0_autoboot_step_3_text;	 Catch:{ ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189 }
        r4 = r4.getString(r5);	 Catch:{ ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189 }
        r1.putExtra(r2, r4);	 Catch:{ ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189 }
        r2 = "guide_img_row_1";
        r4 = com.cootek.permission.views.WrapViewGenerator.getInstance();	 Catch:{ ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189 }
        r5 = com.cootek.permission.R.drawable.huawei_permission_5_0_step_1;	 Catch:{ ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189 }
        r4 = r4.getViewByResId(r5);	 Catch:{ ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189 }
        r1.putExtra(r2, r4);	 Catch:{ ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189 }
        r2 = "guide_img_row_2";
        r4 = com.cootek.permission.views.WrapViewGenerator.getInstance();	 Catch:{ ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189 }
        r5 = com.cootek.permission.R.drawable.huawei_permission_5_0_step_2;	 Catch:{ ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189 }
        r4 = r4.getViewByResId(r5);	 Catch:{ ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189 }
        r1.putExtra(r2, r4);	 Catch:{ ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189 }
        r2 = "guide_img_row_3";
        r4 = com.cootek.permission.views.WrapViewGenerator.getInstance();	 Catch:{ ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189 }
        r5 = com.cootek.permission.R.drawable.huawei_permission_5_0_autoboot_step_3;	 Catch:{ ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189 }
        r4 = r4.getViewByResId(r5);	 Catch:{ ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189 }
        r1.putExtra(r2, r4);	 Catch:{ ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189 }
        r2 = "guide_gesture_row_3";
        r1.putExtra(r2, r3);	 Catch:{ ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189 }
        r2 = "guide_gesture_maring_left_row_3";
        r3 = com.cootek.permission.R.dimen.permission_oppo_trust_gesture_maring_left_step3;	 Catch:{ ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189 }
        r1.putExtra(r2, r3);	 Catch:{ ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189 }
        r2 = new com.cootek.permission.huawei.d2_2010.HuaweiD22010PermissionGuideStrategy$2;	 Catch:{ ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189 }
        r2.<init>(r0, r1);	 Catch:{ ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189 }
        r0 = 100;
        com.cootek.dialer.base.baseutil.thread.UiThreadExecutor.execute(r2, r0);	 Catch:{ ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189 }
        goto L_0x0189;
    L_0x009c:
        r1 = r6.mVersion;	 Catch:{ ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189 }
        r2 = 9;
        if (r1 != r2) goto L_0x00b2;
    L_0x00a2:
        r1 = "com.huawei.systemmanager";
        r2 = "com.huawei.systemmanager.appcontrol.activity.StartupAppControlActivity";
        r0.setClassName(r1, r2);	 Catch:{ ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189 }
        r1 = "autoboot_permission";
        r2 = r6.mAutoGuide;	 Catch:{ ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189 }
        r6.startIntentActivities(r0, r1, r2);	 Catch:{ ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189 }
        goto L_0x0189;
    L_0x00b2:
        r1 = "com.huawei.systemmanager";
        r2 = "com.huawei.systemmanager.optimize.bootstart.BootStartActivity";
        r0.setClassName(r1, r2);	 Catch:{ ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189 }
        r1 = "autoboot_permission";
        r2 = r6.mAutoGuide;	 Catch:{ ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189 }
        r0 = r6.startIntentActivities(r0, r1, r2);	 Catch:{ ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189 }
        r1 = new android.content.Intent;	 Catch:{ ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189 }
        r2 = r6.mContext;	 Catch:{ ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189 }
        r4 = com.cootek.permission.OuterPermissionActivity.class;
        r1.<init>(r2, r4);	 Catch:{ ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189 }
        r2 = "viewstub_id";
        r4 = com.cootek.permission.R.layout.huawei_permission_general_guide;	 Catch:{ ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189 }
        r1.putExtra(r2, r4);	 Catch:{ ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189 }
        r2 = "huawei_general_guide_hintone";
        r4 = com.cootek.permission.R.string.miui_permission_guide_template_one;	 Catch:{ ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189 }
        r4 = com.cootek.permission.utils.StringUtils.getFullStringWithAppName(r4);	 Catch:{ ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189 }
        r1.putExtra(r2, r4);	 Catch:{ ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189 }
        r2 = r6.mVersion;	 Catch:{ ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189 }
        r4 = 3;
        if (r2 == r4) goto L_0x00f9;
    L_0x00e1:
        r2 = r6.mVersion;	 Catch:{ ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189 }
        r4 = 2;
        if (r2 != r4) goto L_0x00e7;
    L_0x00e6:
        goto L_0x00f9;
    L_0x00e7:
        r2 = r6.mVersion;	 Catch:{ ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189 }
        if (r2 != r3) goto L_0x0106;
    L_0x00eb:
        r2 = "huawei_general_guide_hinttwo";
        r3 = r6.mContext;	 Catch:{ ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189 }
        r4 = com.cootek.permission.R.string.huawei_autoboot_protected_hinttwo_v1;	 Catch:{ ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189 }
        r3 = r3.getString(r4);	 Catch:{ ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189 }
        r1.putExtra(r2, r3);	 Catch:{ ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189 }
        goto L_0x0106;
    L_0x00f9:
        r2 = "huawei_general_guide_hinttwo";
        r3 = r6.mContext;	 Catch:{ ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189 }
        r4 = com.cootek.permission.R.string.huawei_autoboot_protected_hinttwo_v2;	 Catch:{ ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189 }
        r3 = r3.getString(r4);	 Catch:{ ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189 }
        r1.putExtra(r2, r3);	 Catch:{ ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189 }
    L_0x0106:
        r2 = "huawei_general_guide_hinttwo";
        r3 = r6.mContext;	 Catch:{ ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189 }
        r4 = com.cootek.permission.R.string.huawei_autoboot_protected_hinttwo_v1;	 Catch:{ ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189 }
        r3 = r3.getString(r4);	 Catch:{ ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189 }
        r1.putExtra(r2, r3);	 Catch:{ ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189 }
        r2 = "huawei_general_guide_alt";
        r3 = r6.mContext;	 Catch:{ ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189 }
        r4 = com.cootek.permission.R.string.huawei_permission_allowed;	 Catch:{ ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189 }
        r3 = r3.getString(r4);	 Catch:{ ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189 }
        r1.putExtra(r2, r3);	 Catch:{ ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189 }
        r2 = "huawei_general_guide_version";
        r3 = r6.mVersion;	 Catch:{ ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189 }
        r1.putExtra(r2, r3);	 Catch:{ ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189 }
        if (r0 == 0) goto L_0x0189;
    L_0x0129:
        r0 = r6.mContext;	 Catch:{ ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189 }
        r0.startActivity(r1);	 Catch:{ ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189 }
        goto L_0x0189;
    L_0x012f:
        r1 = "com.huawei.systemmanager";
        r2 = "com.huawei.systemmanager.startupmgr.ui.StartupNormalAppListActivity";
        r0.setClassName(r1, r2);	 Catch:{ ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189 }
        r1 = 268435456; // 0x10000000 float:2.5243549E-29 double:1.32624737E-315;
        r0.setFlags(r1);	 Catch:{ ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189 }
        r2 = "autoboot_permission";
        r3 = r6.mAutoGuide;	 Catch:{ ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189 }
        r0 = r6.startIntentActivities(r0, r2, r3);	 Catch:{ ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189 }
        if (r0 == 0) goto L_0x0189;
    L_0x0145:
        r0 = new android.content.Intent;	 Catch:{ ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189 }
        r2 = r6.mContext;	 Catch:{ ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189 }
        r3 = com.cootek.permission.OuterPermissionActivity.class;
        r0.<init>(r2, r3);	 Catch:{ ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189 }
        r0.setFlags(r1);	 Catch:{ ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189 }
        r1 = "viewstub_id";
        r2 = com.cootek.permission.R.layout.huawei_permission_general_guide;	 Catch:{ ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189 }
        r0.putExtra(r1, r2);	 Catch:{ ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189 }
        r1 = "huawei_general_guide_hintone";
        r2 = com.cootek.permission.R.string.miui_permission_guide_template_one;	 Catch:{ ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189 }
        r2 = com.cootek.permission.utils.StringUtils.getFullStringWithAppName(r2);	 Catch:{ ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189 }
        r0.putExtra(r1, r2);	 Catch:{ ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189 }
        r1 = "huawei_general_guide_hinttwo";
        r2 = r6.mContext;	 Catch:{ ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189 }
        r3 = com.cootek.permission.R.string.huawei_autoboot_protected_hinttwo_v2;	 Catch:{ ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189 }
        r2 = r2.getString(r3);	 Catch:{ ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189 }
        r0.putExtra(r1, r2);	 Catch:{ ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189 }
        r1 = "huawei_general_guide_alt";
        r2 = r6.mContext;	 Catch:{ ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189 }
        r3 = com.cootek.permission.R.string.huawei_autoboot_permission_alt_v2;	 Catch:{ ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189 }
        r2 = r2.getString(r3);	 Catch:{ ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189 }
        r0.putExtra(r1, r2);	 Catch:{ ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189 }
        r1 = "huawei_general_guide_version";
        r2 = r6.mVersion;	 Catch:{ ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189 }
        r0.putExtra(r1, r2);	 Catch:{ ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189 }
        r1 = r6.mContext;	 Catch:{ ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189 }
        r1.startActivity(r0);	 Catch:{ ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189, ActivityNotFoundException -> 0x0189 }
    L_0x0189:
        return;
        */
        //throw new UnsupportedOperationException("Method not decompiled: com.cootek.permission.huawei.d2_2010.HuaweiD22010PermissionGuideStrategy.actionAutoBootPermission():void");
    }

    protected void actionToastPermission() {
        super.actionToastPermission();
        Intent intent;
        try {
            int i = this.mVersion;
            Intent intent2;
            final boolean startIntentActivities;
            if (i == 2 || i == 4 || i == 5 || i == 9 || i == 6) {
                intent2 = new Intent();
                intent2.setClassName("com.huawei.systemmanager", GuideConst.HUAWEI_TOAST_PERMISSION_ACTIVITY_NAME_V2);
                if (startIntentActivities(intent2, GuideConst.TOAST_PERMISSION, this.mAutoGuide)) {

                }
            } else if (i == 1) {
                intent = new Intent();
                intent.setClassName("com.huawei.systemmanager", GuideConst.HUAWEI_TOAST_PERMISSION_ACTIVITY_NAME_V1);
                if (startIntentActivities(intent, GuideConst.TOAST_PERMISSION, this.mAutoGuide)) {

                }
            } else if (i == 3) {
                intent = new Intent();
                intent.setClassName("com.huawei.systemmanager", GuideConst.HUAWEI_TOAST_PERMISSION_ACTIVITY_NAME_V3);
                startIntentActivities = startIntentActivities(intent, GuideConst.TOAST_PERMISSION, this.mAutoGuide);
            } else if (mVersionNum == 900) {
                intent = new Intent();
                intent.setClassName("com.huawei.systemmanager", GuideConst.HUAWEI_APP_PERMISSION_ACTIVITY_NAME);
                startIntentActivities = startIntentActivities(intent, GuideConst.TOAST_PERMISSION, this.mAutoGuide);
            }
        } catch (Throwable e) {
            try {
                intent = new Intent();
                intent.setClassName("com.huawei.systemmanager", "com.huawei.systemmanager.mainscreen.MainScreenActivity");
                startIntentActivities(intent, GuideConst.TOAST_PERMISSION, this.mAutoGuide);
            } catch (Throwable e2) {
            }
        }
    }

    protected void actionBackgroundPermisssion() {
        super.actionBackgroundPermisssion();
        try {
            Intent intent = new Intent();
            intent.setClassName("com.huawei.systemmanager", GuideConst.HUAWEI_BACKGROUND_PROTECT_PERMISSION_ACTIVITY_NAME);
            boolean startIntentActivities = startIntentActivities(intent, GuideConst.BACKGROUND_PROTECT_PERMISSION, this.mAutoGuide);
//            Intent intent2 = new Intent(this.mContext, OuterPermissionActivity.class);
//            intent2.putExtra(OuterPermissionActivity.VIEWSTUB_ID, R.layout.general_permission_guide_mask);
//            if (this.mVersion >= 6) {
//                intent2.putExtra(OuterPermissionActivity.GUIDEPIC_ID, WrapViewGenerator.getInstance().getViewByResId(R.drawable.huawei_background_permission_item_v7));
//            } else {
//                intent2.putExtra(OuterPermissionActivity.GUIDEPIC_ID, WrapViewGenerator.getInstance().getViewByResId(R.drawable.huawei_background_permission_item));
//            }
//            intent2.putExtra(OuterPermissionActivity.GUIDE_HINTONE, this.mContext.getString(R.string.miui_permission_guide_template_one, new Object[]{ConfigHandler.getInstance().getAppName()}));
//            if (this.mVersion >= 6) {
//                intent2.putExtra(OuterPermissionActivity.GUIDE_HINTTWO, StringUtils.getFullStringWithAppName(R.string.huawei_background_protected_hinttwo_v7));
//            } else {
//                intent2.putExtra(OuterPermissionActivity.GUIDE_HINTTWO, StringUtils.getFullStringWithAppName(R.string.huawei_background_protected_hinttwo_v2));
//            }
//            if (startIntentActivities) {
//                this.mContext.startActivity(intent2);
//            }
        } catch (Throwable e) {
        }
    }

    protected void actionWhiteListPermisssion() {
        super.actionWhiteListPermisssion();
        try {
            Intent intent = new Intent();
            intent.setClassName("com.huawei.systemmanager", "com.huawei.systemmanager.mainscreen.MainScreenActivity");
            startIntentActivities(intent, "white_list", this.mAutoGuide);
        } catch (Throwable e) {
        }
    }

    protected void actionPermissionDeny(int i) {
        if (3 == i || 1 == i || 2 == i) {
            actionTrustApplicationPermission(true);
            return;
        }
        throw new IllegalArgumentException();
    }

    protected void actionCallogOrContactPermission() {
        super.actionCallogOrContactPermission();
        actionTrustApplicationPermission(true);
    }

    protected void actionDozePermission() {
        super.actionDozePermission();
        try {
            final boolean startIntentActivities = startIntentActivities(new Intent("android.settings.IGNORE_BATTERY_OPTIMIZATION_SETTINGS"), GuideConst.DOZE_PERMISSION, this.mAutoGuide);
            final Intent intent;
            if (mVersionNum == 900) {
                return;
            }
        } catch (Throwable e) {
        }
    }

    public ArrayList<String> getPermissionList() {
        ArrayList<String> arrayList = new ArrayList();
        for (Permission permission : ConfigHandler.getInstance().getPermissionList()) {
            switch (permission) {
                case TOAST:
                    arrayList.add(GuideConst.TOAST_PERMISSION);
                    break;
                case CALL_RINGTONE:
//                    if(!PermissionListUtil.isSupportModifyWriteSettingPermission())
                        arrayList.add(GuideConst.CALL_RINGTONE_PERMISSION);
                    break;
                case DIAL_NOTI:
//                    if(!PermissionListUtil.notificationListenerEnable())
                        arrayList.add(GuideConst.DIAL_NOTI_PERMISSION);
                    break;
                case AUTO_BOOT:
                    arrayList.add(GuideConst.AUTOBOOT_PERMISSION);
                    break;
                case SHORTCUT:
                    break;
                case BACKGROUND_PROTECT:
                    arrayList.add(GuideConst.BACKGROUND_PROTECT_PERMISSION);
                    break;
                case TRUST_APP:
                    arrayList.add(GuideConst.TRUST_APPLICATION_PERMISSION);
                    break;
                default:
                    break;
            }
        }
        return arrayList;
    }

    protected void actionDialNotiPermission() {
        super.actionDialNotiPermission();
        try {
            if (startIntentActivities(new Intent("android.settings.ACTION_NOTIFICATION_LISTENER_SETTINGS"), GuideConst.DIAL_NOTI_PERMISSION, this.mAutoGuide)) {
//                Intent intent = new Intent(this.mContext, OuterPermissionActivity.class);
//                intent.putExtra(OuterPermissionActivity.VIEWSTUB_ID, R.layout.general_permission_guide_mask);
//                intent.putExtra(OuterPermissionActivity.GUIDEPIC_ID, WrapViewGenerator.getInstance().getViewByResId(R.drawable.permission_noti_vivo_4_0));
//                intent.putExtra(OuterPermissionActivity.GUIDE_HINTONE, StringUtils.getFullStringWithAppName(R.string.miui_permission_guide_template_one));
//                intent.putExtra(OuterPermissionActivity.GUIDE_HINTTWO, this.mContext.getString(R.string.call_ringtone_permission2));
//                this.mContext.startActivity(intent);
            }
        } catch (ActivityNotFoundException e) {
            String str = TAG;
            StringBuilder stringBuilder = new StringBuilder();
            stringBuilder.append("Failed to start activity:");
            stringBuilder.append(e.toString());
        }
    }

    protected void actionCallRingtonePermission() {
        super.actionCallRingtonePermission();
        try {
            CallerShowUtils.jumpToSysMidifySettingActivity(this.mContext);
        } catch (Exception unused) {
        }
    }
}
